#ifndef VFILE_H_
#define VFILE_H_
#include "common.h"
#include <vector>

class   VFile
    {
public:
    static unique_ptr<VFile> Load(const char* Filename);
    unique_ref<char>    Get() { return ConstData?ConstData:LoadedData.data(); }
private:
    VFile();
    VFile& operator=(VFile&Other)=delete;
    const char*         ConstData;
    std::vector<char>   LoadedData;
    };


unique_ptr<VFile>   VFileLoad(const char* Filename);

#endif /* VFILE_H_ */

